package com.joysuch.wwyt.dzhapi.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;

import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author JamesZY
 * @since 2021-12-08
 */
@Data
//@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_bp_certificate")
@ApiModel(value = "BpCertificate对象", description = "")
public class ApiBpCertificateBean {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "作业类别")
    @TableField("HOMEWORK_ID")
    private String homeworkId;

    @ApiModelProperty(value = "连续从事本工种时间（年）")
    @TableField("CONTINUOUS")
    private Integer continuous;

    @ApiModelProperty(value = "证件编号")
    @TableField("CARD_NUMBER")
    private String cardNumber;

    @ApiModelProperty(value = "初领日期")
    @TableField("EARLY_DATE")
    private LocalDate earlyDate;

    @ApiModelProperty(value = "有效期限始")
    @TableField("VALIDITY_BEGIN")
    private LocalDate validityBegin;

    @ApiModelProperty(value = "有效期限终")
    @TableField("VALIDITY_END")
    private LocalDate validityEnd;

    @ApiModelProperty(value = "复审日期")
    @TableField("RECHECK_DATE")
    private LocalDate recheckDate;

    @ApiModelProperty(value = "是否十年延期复审")
    @TableField("POSTPONE")
    private String postpone;

    @ApiModelProperty(value = "准操项目")
    @TableField("HOLD_PROJECT")
    private String holdProject;

    @ApiModelProperty(value = "操作证正面照片")
    @TableField("IMAGE_ID")
    private Long imageId;

    @ApiModelProperty(value = "人员Id")
    @TableField("USET_ID")
    private Long usetId;

    @ApiModelProperty(value = "资质证件类型")
    @TableField("GROUP_ID")
    private Long groupId;

    @ApiModelProperty(value = "下载路径")
    @TableField("DOWNLOADURL")
    private String downloadurl;

    @ApiModelProperty(value = "文件名称")
    @TableField("NAME")
    private String name;


    /**
     * 组织机构代码
     */
    @TableField(value = "ORG_CODE", fill = FieldFill.INSERT_UPDATE)
    private String orgCode;

    /**
     * 租户
     */
    @TableField(value = "TENENT_ID", fill = FieldFill.INSERT_UPDATE)
    private Long tenentId;


}
